package com.youth.youthservice.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.netflix.ribbon.proxy.annotation.Http;
import com.youth.commonutils.R;
import com.youth.youthservice.entity.EduCourseCollect;
import org.apache.http.impl.bootstrap.HttpServer;

import javax.servlet.http.HttpServletRequest;

/**
 * 课程收藏(EduCourseCollect)表服务接口
 *
 * @author makejava
 * @since 2023-05-05 13:08:01
 */
public interface EduCourseCollectService extends IService<EduCourseCollect> {

    /*用户登陆后检查课程是否已经被收藏*/
    R checkCollect(String courseId, HttpServletRequest request);

    /*用户登录后收藏课程*/
    R collect(String courseId, HttpServletRequest request);

    /*个人中心查询我的收藏*/
    R listByUserId(Long pageNum, Long pageSize, HttpServletRequest request);

    /*取消收藏*/
    R CollectCancel(String courseId, HttpServletRequest request);

    /*取消收藏课程*/
    R cancel(String id);

    /*设置置顶*/
    R setTop(String id);
}

